<p>Trilium supports Markdown for both import and export, while trying to
  keep compatibility as high as possible.</p>
<h2>Import</h2>
<h3>Clipboard import</h3>
<p>If you want to import just a chunk of markdown from clipboard, you can
  do it from editor block menu:</p>
<p>
  <img src="Markdown_markdown-inline-i.gif">
</p>
<h3>File import</h3>
<p>You can also import Markdown files from files:</p>
<ul>
  <li>single markdown file (with .md extension)</li>
  <li>whole tree of markdown files (packaged into <a href="https://en.wikipedia.org/wiki/Tar_(computing)">.zip</a> archive)
    <ul>
      <li>Markdown files need to be packaged into ZIP archive because browser can't
        read directories, only single files.</li>
      <li>You can use e.g. <a href="https://www.7-zip.org">7-zip</a> to package directory
        of markdown files into the ZIP file</li>
    </ul>
  </li>
</ul>
<p>[[gifs/markdown-file-import.gif]]</p>
<p>
  <img src="Markdown_markdown-file-imp.gif">
</p>
<h2>Export</h2>
<h3>Subtree export</h3>
<p>You can export whole subtree to ZIP archive which will have directory
  structured modelled after subtree structure:</p>
<p>
  <img src="Markdown_markdown-export-s.gif">
</p>
<h3>Single note export</h3>
<p>If you want to export just single note without its subtree, you can do
  it from Note actions menu:</p>
<p>
  <img src="Markdown_markdown-export-n.gif">
</p>
<h3>Exporting protected notes</h3>
<p>If you want to export protected notes, enter a protected session first!
  This will export the notes in an unencrypted form, so if you reimport into
  Trilium, make sure to re-protect these notes.</p>
<h2>Supported syntax</h2>
<p>See the dedicated page:&nbsp;<a class="reference-link" href="#root/_help_rJ9grSgoExl9">Supported syntax</a>
</p>